Syntax:
set terminal hpljii {<resolution>} set terminal hpdj {<resolution>}
where <resolution> is the resolution of the output in dots per inch. It must be 75, 100, 150 or 300.
Example:
set terminal hpljii 150